using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
   public partial class VICC_ABPOS_MCO
    {
      #region======ColumnSchema==========
       /*
                public double ABCOID { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["ABCOID"].ToString()); } set { if (dwMaster == null) return; dwMaster["ABCOID"] = value; OnPropertyChanged("ABCOID", value); } } //lENGth 0
                public string MANDANT { get { if (dwMaster == null) return ""; return dwMaster["MANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["MANDANT"] = value; OnPropertyChanged("MANDANT", value); } } //lENGth 2
                public string NEWDATE { get { if (dwMaster == null) return ""; return dwMaster["NEWDATE"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEWDATE"] = value; OnPropertyChanged("NEWDATE", value); } } //lENGth 8
                public string NEWUSER { get { if (dwMaster == null) return ""; return dwMaster["NEWUSER"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEWUSER"] = value; OnPropertyChanged("NEWUSER", value); } } //lENGth 8
                public string CHGDATE { get { if (dwMaster == null) return ""; return dwMaster["CHGDATE"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHGDATE"] = value; OnPropertyChanged("CHGDATE", value); } } //lENGth 8
                public string CHGUSER { get { if (dwMaster == null) return ""; return dwMaster["CHGUSER"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHGUSER"] = value; OnPropertyChanged("CHGUSER", value); } } //lENGth 8
                public string COTYP { get { if (dwMaster == null) return ""; return dwMaster["COTYP"].ToString(); } set { if (dwMaster == null) return; dwMaster["COTYP"] = value; OnPropertyChanged("COTYP", value); } } //lENGth 2
                public string KRS { get { if (dwMaster == null) return ""; return dwMaster["KRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KRS"] = value; OnPropertyChanged("KRS", value); } } //lENGth 2
                public string LFD { get { if (dwMaster == null) return ""; return dwMaster["LFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["LFD"] = value; OnPropertyChanged("LFD", value); } } //lENGth 6
                public string POS { get { if (dwMaster == null) return ""; return dwMaster["POS"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS"] = value; OnPropertyChanged("POS", value); } } //lENGth 3
                public string ART { get { if (dwMaster == null) return ""; return dwMaster["ART"].ToString(); } set { if (dwMaster == null) return; dwMaster["ART"] = value; OnPropertyChanged("ART", value); } } //lENGth 20
                public string VAR { get { if (dwMaster == null) return ""; return dwMaster["VAR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VAR"] = value; OnPropertyChanged("VAR", value); } } //lENGth 3
                public string FARBE { get { if (dwMaster == null) return ""; return dwMaster["FARBE"].ToString(); } set { if (dwMaster == null) return; dwMaster["FARBE"] = value; OnPropertyChanged("FARBE", value); } } //lENGth 10
                public string DESS { get { if (dwMaster == null) return ""; return dwMaster["DESS"].ToString(); } set { if (dwMaster == null) return; dwMaster["DESS"] = value; OnPropertyChanged("DESS", value); } } //lENGth 10
                public string COLORIT { get { if (dwMaster == null) return ""; return dwMaster["COLORIT"].ToString(); } set { if (dwMaster == null) return; dwMaster["COLORIT"] = value; OnPropertyChanged("COLORIT", value); } } //lENGth 10
                public string FINISH { get { if (dwMaster == null) return ""; return dwMaster["FINISH"].ToString(); } set { if (dwMaster == null) return; dwMaster["FINISH"] = value; OnPropertyChanged("FINISH", value); } } //lENGth 10
                public string CDES { get { if (dwMaster == null) return ""; return dwMaster["CDES"].ToString(); } set { if (dwMaster == null) return; dwMaster["CDES"] = value; OnPropertyChanged("CDES", value); } } //lENGth 60
                public string ARTDES { get { if (dwMaster == null) return ""; return dwMaster["ARTDES"].ToString(); } set { if (dwMaster == null) return; dwMaster["ARTDES"] = value; OnPropertyChanged("ARTDES", value); } } //lENGth 60
                public string END { get { if (dwMaster == null) return ""; return dwMaster["END"].ToString(); } set { if (dwMaster == null) return; dwMaster["END"] = value; OnPropertyChanged("END", value); } } //lENGth 1
                public double ENDDATE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["ENDDATE"].ToString()); } set { if (dwMaster == null) return; dwMaster["ENDDATE"] = value; OnPropertyChanged("ENDDATE", value); } } //lENGth 0
                public double APPDATE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APPDATE"].ToString()); } set { if (dwMaster == null) return; dwMaster["APPDATE"] = value; OnPropertyChanged("APPDATE", value); } } //lENGth 0
                public double QTY { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["QTY"].ToString()); } set { if (dwMaster == null) return; dwMaster["QTY"] = value; OnPropertyChanged("QTY", value); } } //lENGth 0
                public double QTYP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["QTYP"].ToString()); } set { if (dwMaster == null) return; dwMaster["QTYP"] = value; OnPropertyChanged("QTYP", value); } } //lENGth 0
                public double DQTY { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["DQTY"].ToString()); } set { if (dwMaster == null) return; dwMaster["DQTY"] = value; OnPropertyChanged("DQTY", value); } } //lENGth 0
                public double MPRICE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["MPRICE"].ToString()); } set { if (dwMaster == null) return; dwMaster["MPRICE"] = value; OnPropertyChanged("MPRICE", value); } } //lENGth 0
                public double PSS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PSS"].ToString()); } set { if (dwMaster == null) return; dwMaster["PSS"] = value; OnPropertyChanged("PSS", value); } } //lENGth 0
                public double PSE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PSE"].ToString()); } set { if (dwMaster == null) return; dwMaster["PSE"] = value; OnPropertyChanged("PSE", value); } } //lENGth 0
                public double PSP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PSP"].ToString()); } set { if (dwMaster == null) return; dwMaster["PSP"] = value; OnPropertyChanged("PSP", value); } } //lENGth 0
                public double PPS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PPS"].ToString()); } set { if (dwMaster == null) return; dwMaster["PPS"] = value; OnPropertyChanged("PPS", value); } } //lENGth 0
                public double PPE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PPE"].ToString()); } set { if (dwMaster == null) return; dwMaster["PPE"] = value; OnPropertyChanged("PPE", value); } } //lENGth 0
                public double PPP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PPP"].ToString()); } set { if (dwMaster == null) return; dwMaster["PPP"] = value; OnPropertyChanged("PPP", value); } } //lENGth 0
                public double PTS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PTS"].ToString()); } set { if (dwMaster == null) return; dwMaster["PTS"] = value; OnPropertyChanged("PTS", value); } } //lENGth 0
                public double PTE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PTE"].ToString()); } set { if (dwMaster == null) return; dwMaster["PTE"] = value; OnPropertyChanged("PTE", value); } } //lENGth 0
                public double PTP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PTP"].ToString()); } set { if (dwMaster == null) return; dwMaster["PTP"] = value; OnPropertyChanged("PTP", value); } } //lENGth 0
                public double VTSS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTSS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTSS"] = value; OnPropertyChanged("VTSS", value); } } //lENGth 0
                public double VTSE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTSE"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTSE"] = value; OnPropertyChanged("VTSE", value); } } //lENGth 0
                public double VTSP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTSP"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTSP"] = value; OnPropertyChanged("VTSP", value); } } //lENGth 0
                public double VTPS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTPS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTPS"] = value; OnPropertyChanged("VTPS", value); } } //lENGth 0
                public double VTPE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTPE"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTPE"] = value; OnPropertyChanged("VTPE", value); } } //lENGth 0
                public double VTPP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTPP"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTPP"] = value; OnPropertyChanged("VTPP", value); } } //lENGth 0
                public double VTTS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTTS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTTS"] = value; OnPropertyChanged("VTTS", value); } } //lENGth 0
                public double VTTE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTTE"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTTE"] = value; OnPropertyChanged("VTTE", value); } } //lENGth 0
                public double VTTP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VTTP"].ToString()); } set { if (dwMaster == null) return; dwMaster["VTTP"] = value; OnPropertyChanged("VTTP", value); } } //lENGth 0
                public double VMQSTDPSTD { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQSTDPSTD"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQSTDPSTD"] = value; OnPropertyChanged("VMQSTDPSTD", value); } } //lENGth 0
                public double VMQSTDPEK { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQSTDPEK"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQSTDPEK"] = value; OnPropertyChanged("VMQSTDPEK", value); } } //lENGth 0
                public double VMQSTDPPLAN { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQSTDPPLAN"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQSTDPPLAN"] = value; OnPropertyChanged("VMQSTDPPLAN", value); } } //lENGth 0
                public double VMQPLANPSTD { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQPLANPSTD"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQPLANPSTD"] = value; OnPropertyChanged("VMQPLANPSTD", value); } } //lENGth 0
                public double VMQPLANPEK { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQPLANPEK"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQPLANPEK"] = value; OnPropertyChanged("VMQPLANPEK", value); } } //lENGth 0
                public double VMQPLANPPLAN { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQPLANPPLAN"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQPLANPPLAN"] = value; OnPropertyChanged("VMQPLANPPLAN", value); } } //lENGth 0
                public double VMQACTPSTD { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQACTPSTD"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQACTPSTD"] = value; OnPropertyChanged("VMQACTPSTD", value); } } //lENGth 0
                public double VMQACTPEK { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQACTPEK"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQACTPEK"] = value; OnPropertyChanged("VMQACTPEK", value); } } //lENGth 0
                public double VMQACTPPLAN { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["VMQACTPPLAN"].ToString()); } set { if (dwMaster == null) return; dwMaster["VMQACTPPLAN"] = value; OnPropertyChanged("VMQACTPPLAN", value); } } //lENGth 0
                public double PRODV { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["PRODV"].ToString()); } set { if (dwMaster == null) return; dwMaster["PRODV"] = value; OnPropertyChanged("PRODV", value); } } //lENGth 0
                public double ADMINV { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["ADMINV"].ToString()); } set { if (dwMaster == null) return; dwMaster["ADMINV"] = value; OnPropertyChanged("ADMINV", value); } } //lENGth 0
                public double SNDQTY { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["SNDQTY"].ToString()); } set { if (dwMaster == null) return; dwMaster["SNDQTY"] = value; OnPropertyChanged("SNDQTY", value); } } //lENGth 0
                public double S { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["S"].ToString()); } set { if (dwMaster == null) return; dwMaster["S"] = value; OnPropertyChanged("S", value); } } //lENGth 0
                public double M { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["M"].ToString()); } set { if (dwMaster == null) return; dwMaster["M"] = value; OnPropertyChanged("M", value); } } //lENGth 0
                public double L { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["L"].ToString()); } set { if (dwMaster == null) return; dwMaster["L"] = value; OnPropertyChanged("L", value); } } //lENGth 0
                public double XL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["XL"].ToString()); } set { if (dwMaster == null) return; dwMaster["XL"] = value; OnPropertyChanged("XL", value); } } //lENGth 0
                public double SP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["SP"].ToString()); } set { if (dwMaster == null) return; dwMaster["SP"] = value; OnPropertyChanged("SP", value); } } //lENGth 0
                public double MP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["MP"].ToString()); } set { if (dwMaster == null) return; dwMaster["MP"] = value; OnPropertyChanged("MP", value); } } //lENGth 0
                public double LP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["LP"].ToString()); } set { if (dwMaster == null) return; dwMaster["LP"] = value; OnPropertyChanged("LP", value); } } //lENGth 0
                public double XLP { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["XLP"].ToString()); } set { if (dwMaster == null) return; dwMaster["XLP"] = value; OnPropertyChanged("XLP", value); } } //lENGth 0
                public string CONTROL { get { if (dwMaster == null) return ""; return dwMaster["CONTROL"].ToString(); } set { if (dwMaster == null) return; dwMaster["CONTROL"] = value; OnPropertyChanged("CONTROL", value); } } //lENGth 3
                public string PROGRP { get { if (dwMaster == null) return ""; return dwMaster["PROGRP"].ToString(); } set { if (dwMaster == null) return; dwMaster["PROGRP"] = value; OnPropertyChanged("PROGRP", value); } } //lENGth 3
                public string PROGRPD { get { if (dwMaster == null) return ""; return dwMaster["PROGRPD"].ToString(); } set { if (dwMaster == null) return; dwMaster["PROGRPD"] = value; OnPropertyChanged("PROGRPD", value); } } //lENGth 20
                public string ARTGRP { get { if (dwMaster == null) return ""; return dwMaster["ARTGRP"].ToString(); } set { if (dwMaster == null) return; dwMaster["ARTGRP"] = value; OnPropertyChanged("ARTGRP", value); } } //lENGth 3
                public string ARTGRPD { get { if (dwMaster == null) return ""; return dwMaster["ARTGRPD"].ToString(); } set { if (dwMaster == null) return; dwMaster["ARTGRPD"] = value; OnPropertyChanged("ARTGRPD", value); } } //lENGth 20
                public string MATGRP { get { if (dwMaster == null) return ""; return dwMaster["MATGRP"].ToString(); } set { if (dwMaster == null) return; dwMaster["MATGRP"] = value; OnPropertyChanged("MATGRP", value); } } //lENGth 3
                public string MATGRPD { get { if (dwMaster == null) return ""; return dwMaster["MATGRPD"].ToString(); } set { if (dwMaster == null) return; dwMaster["MATGRPD"] = value; OnPropertyChanged("MATGRPD", value); } } //lENGth 20
                public string MATART { get { if (dwMaster == null) return ""; return dwMaster["MATART"].ToString(); } set { if (dwMaster == null) return; dwMaster["MATART"] = value; OnPropertyChanged("MATART", value); } } //lENGth 4
                public string MATARTD { get { if (dwMaster == null) return ""; return dwMaster["MATARTD"].ToString(); } set { if (dwMaster == null) return; dwMaster["MATARTD"] = value; OnPropertyChanged("MATARTD", value); } } //lENGth 20
                public string SECTION { get { if (dwMaster == null) return ""; return dwMaster["SECTION"].ToString(); } set { if (dwMaster == null) return; dwMaster["SECTION"] = value; OnPropertyChanged("SECTION", value); } } //lENGth 3
       */
       #endregion
    } 
       public partial class UIICC_ABPOS_MCO
    {
      
        #region======ColumnSchema==========
       /*
       #region ==ABCOID===========
        public static readonly DependencyProperty ABCOIDProperty = DependencyProperty.Register("ABCOID",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnABCOIDChanged));
        public string ABCOID
        {
            get
            {
                return (string)GetValue(ABCOIDProperty);
            }
            set
            {
                SetValue(ABCOIDProperty, value);
                OnABCOIDChg();
            }
        }
        private static void OnABCOIDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ABCOID = (string)e.NewValue;
            }
        }
        public virtual void OnABCOIDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ABCOID=ABCOID;
        }
         #endregion
       #region ==MANDANT===========
        public static readonly DependencyProperty MANDANTProperty = DependencyProperty.Register("MANDANT",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMANDANTChanged));
        public string MANDANT
        {
            get
            {
                return (string)GetValue(MANDANTProperty);
            }
            set
            {
                SetValue(MANDANTProperty, value);
                OnMANDANTChg();
            }
        }
        private static void OnMANDANTChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MANDANT = (string)e.NewValue;
            }
        }
        public virtual void OnMANDANTChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MANDANT=MANDANT;
        }
         #endregion
       #region ==NEWDATE===========
        public static readonly DependencyProperty NEWDATEProperty = DependencyProperty.Register("NEWDATE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEWDATEChanged));
        public string NEWDATE
        {
            get
            {
                return (string)GetValue(NEWDATEProperty);
            }
            set
            {
                SetValue(NEWDATEProperty, value);
                OnNEWDATEChg();
            }
        }
        private static void OnNEWDATEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.NEWDATE = (string)e.NewValue;
            }
        }
        public virtual void OnNEWDATEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEWDATE=NEWDATE;
        }
         #endregion
       #region ==NEWUSER===========
        public static readonly DependencyProperty NEWUSERProperty = DependencyProperty.Register("NEWUSER",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEWUSERChanged));
        public string NEWUSER
        {
            get
            {
                return (string)GetValue(NEWUSERProperty);
            }
            set
            {
                SetValue(NEWUSERProperty, value);
                OnNEWUSERChg();
            }
        }
        private static void OnNEWUSERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.NEWUSER = (string)e.NewValue;
            }
        }
        public virtual void OnNEWUSERChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEWUSER=NEWUSER;
        }
         #endregion
       #region ==CHGDATE===========
        public static readonly DependencyProperty CHGDATEProperty = DependencyProperty.Register("CHGDATE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHGDATEChanged));
        public string CHGDATE
        {
            get
            {
                return (string)GetValue(CHGDATEProperty);
            }
            set
            {
                SetValue(CHGDATEProperty, value);
                OnCHGDATEChg();
            }
        }
        private static void OnCHGDATEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.CHGDATE = (string)e.NewValue;
            }
        }
        public virtual void OnCHGDATEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CHGDATE=CHGDATE;
        }
         #endregion
       #region ==CHGUSER===========
        public static readonly DependencyProperty CHGUSERProperty = DependencyProperty.Register("CHGUSER",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHGUSERChanged));
        public string CHGUSER
        {
            get
            {
                return (string)GetValue(CHGUSERProperty);
            }
            set
            {
                SetValue(CHGUSERProperty, value);
                OnCHGUSERChg();
            }
        }
        private static void OnCHGUSERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.CHGUSER = (string)e.NewValue;
            }
        }
        public virtual void OnCHGUSERChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CHGUSER=CHGUSER;
        }
         #endregion
       #region ==COTYP===========
        public static readonly DependencyProperty COTYPProperty = DependencyProperty.Register("COTYP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCOTYPChanged));
        public string COTYP
        {
            get
            {
                return (string)GetValue(COTYPProperty);
            }
            set
            {
                SetValue(COTYPProperty, value);
                OnCOTYPChg();
            }
        }
        private static void OnCOTYPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.COTYP = (string)e.NewValue;
            }
        }
        public virtual void OnCOTYPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.COTYP=COTYP;
        }
         #endregion
       #region ==KRS===========
        public static readonly DependencyProperty KRSProperty = DependencyProperty.Register("KRS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnKRSChanged));
        public string KRS
        {
            get
            {
                return (string)GetValue(KRSProperty);
            }
            set
            {
                SetValue(KRSProperty, value);
                OnKRSChg();
            }
        }
        private static void OnKRSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.KRS = (string)e.NewValue;
            }
        }
        public virtual void OnKRSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.KRS=KRS;
        }
         #endregion
       #region ==LFD===========
        public static readonly DependencyProperty LFDProperty = DependencyProperty.Register("LFD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnLFDChanged));
        public string LFD
        {
            get
            {
                return (string)GetValue(LFDProperty);
            }
            set
            {
                SetValue(LFDProperty, value);
                OnLFDChg();
            }
        }
        private static void OnLFDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.LFD = (string)e.NewValue;
            }
        }
        public virtual void OnLFDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.LFD=LFD;
        }
         #endregion
       #region ==POS===========
        public static readonly DependencyProperty POSProperty = DependencyProperty.Register("POS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPOSChanged));
        public string POS
        {
            get
            {
                return (string)GetValue(POSProperty);
            }
            set
            {
                SetValue(POSProperty, value);
                OnPOSChg();
            }
        }
        private static void OnPOSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.POS = (string)e.NewValue;
            }
        }
        public virtual void OnPOSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.POS=POS;
        }
         #endregion
       #region ==ART===========
        public static readonly DependencyProperty ARTProperty = DependencyProperty.Register("ART",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnARTChanged));
        public string ART
        {
            get
            {
                return (string)GetValue(ARTProperty);
            }
            set
            {
                SetValue(ARTProperty, value);
                OnARTChg();
            }
        }
        private static void OnARTChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ART = (string)e.NewValue;
            }
        }
        public virtual void OnARTChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ART=ART;
        }
         #endregion
       #region ==VAR===========
        public static readonly DependencyProperty VARProperty = DependencyProperty.Register("VAR",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVARChanged));
        public string VAR
        {
            get
            {
                return (string)GetValue(VARProperty);
            }
            set
            {
                SetValue(VARProperty, value);
                OnVARChg();
            }
        }
        private static void OnVARChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VAR = (string)e.NewValue;
            }
        }
        public virtual void OnVARChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VAR=VAR;
        }
         #endregion
       #region ==FARBE===========
        public static readonly DependencyProperty FARBEProperty = DependencyProperty.Register("FARBE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnFARBEChanged));
        public string FARBE
        {
            get
            {
                return (string)GetValue(FARBEProperty);
            }
            set
            {
                SetValue(FARBEProperty, value);
                OnFARBEChg();
            }
        }
        private static void OnFARBEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.FARBE = (string)e.NewValue;
            }
        }
        public virtual void OnFARBEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.FARBE=FARBE;
        }
         #endregion
       #region ==DESS===========
        public static readonly DependencyProperty DESSProperty = DependencyProperty.Register("DESS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDESSChanged));
        public string DESS
        {
            get
            {
                return (string)GetValue(DESSProperty);
            }
            set
            {
                SetValue(DESSProperty, value);
                OnDESSChg();
            }
        }
        private static void OnDESSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.DESS = (string)e.NewValue;
            }
        }
        public virtual void OnDESSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.DESS=DESS;
        }
         #endregion
       #region ==COLORIT===========
        public static readonly DependencyProperty COLORITProperty = DependencyProperty.Register("COLORIT",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCOLORITChanged));
        public string COLORIT
        {
            get
            {
                return (string)GetValue(COLORITProperty);
            }
            set
            {
                SetValue(COLORITProperty, value);
                OnCOLORITChg();
            }
        }
        private static void OnCOLORITChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.COLORIT = (string)e.NewValue;
            }
        }
        public virtual void OnCOLORITChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.COLORIT=COLORIT;
        }
         #endregion
       #region ==FINISH===========
        public static readonly DependencyProperty FINISHProperty = DependencyProperty.Register("FINISH",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnFINISHChanged));
        public string FINISH
        {
            get
            {
                return (string)GetValue(FINISHProperty);
            }
            set
            {
                SetValue(FINISHProperty, value);
                OnFINISHChg();
            }
        }
        private static void OnFINISHChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.FINISH = (string)e.NewValue;
            }
        }
        public virtual void OnFINISHChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.FINISH=FINISH;
        }
         #endregion
       #region ==CDES===========
        public static readonly DependencyProperty CDESProperty = DependencyProperty.Register("CDES",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCDESChanged));
        public string CDES
        {
            get
            {
                return (string)GetValue(CDESProperty);
            }
            set
            {
                SetValue(CDESProperty, value);
                OnCDESChg();
            }
        }
        private static void OnCDESChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.CDES = (string)e.NewValue;
            }
        }
        public virtual void OnCDESChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CDES=CDES;
        }
         #endregion
       #region ==ARTDES===========
        public static readonly DependencyProperty ARTDESProperty = DependencyProperty.Register("ARTDES",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnARTDESChanged));
        public string ARTDES
        {
            get
            {
                return (string)GetValue(ARTDESProperty);
            }
            set
            {
                SetValue(ARTDESProperty, value);
                OnARTDESChg();
            }
        }
        private static void OnARTDESChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ARTDES = (string)e.NewValue;
            }
        }
        public virtual void OnARTDESChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ARTDES=ARTDES;
        }
         #endregion
       #region ==END===========
        public static readonly DependencyProperty ENDProperty = DependencyProperty.Register("END",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnENDChanged));
        public string END
        {
            get
            {
                return (string)GetValue(ENDProperty);
            }
            set
            {
                SetValue(ENDProperty, value);
                OnENDChg();
            }
        }
        private static void OnENDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.END = (string)e.NewValue;
            }
        }
        public virtual void OnENDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.END=END;
        }
         #endregion
       #region ==ENDDATE===========
        public static readonly DependencyProperty ENDDATEProperty = DependencyProperty.Register("ENDDATE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnENDDATEChanged));
        public string ENDDATE
        {
            get
            {
                return (string)GetValue(ENDDATEProperty);
            }
            set
            {
                SetValue(ENDDATEProperty, value);
                OnENDDATEChg();
            }
        }
        private static void OnENDDATEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ENDDATE = (string)e.NewValue;
            }
        }
        public virtual void OnENDDATEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ENDDATE=ENDDATE;
        }
         #endregion
       #region ==APPDATE===========
        public static readonly DependencyProperty APPDATEProperty = DependencyProperty.Register("APPDATE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnAPPDATEChanged));
        public string APPDATE
        {
            get
            {
                return (string)GetValue(APPDATEProperty);
            }
            set
            {
                SetValue(APPDATEProperty, value);
                OnAPPDATEChg();
            }
        }
        private static void OnAPPDATEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.APPDATE = (string)e.NewValue;
            }
        }
        public virtual void OnAPPDATEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.APPDATE=APPDATE;
        }
         #endregion
       #region ==QTY===========
        public static readonly DependencyProperty QTYProperty = DependencyProperty.Register("QTY",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnQTYChanged));
        public string QTY
        {
            get
            {
                return (string)GetValue(QTYProperty);
            }
            set
            {
                SetValue(QTYProperty, value);
                OnQTYChg();
            }
        }
        private static void OnQTYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.QTY = (string)e.NewValue;
            }
        }
        public virtual void OnQTYChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.QTY=QTY;
        }
         #endregion
       #region ==QTYP===========
        public static readonly DependencyProperty QTYPProperty = DependencyProperty.Register("QTYP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnQTYPChanged));
        public string QTYP
        {
            get
            {
                return (string)GetValue(QTYPProperty);
            }
            set
            {
                SetValue(QTYPProperty, value);
                OnQTYPChg();
            }
        }
        private static void OnQTYPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.QTYP = (string)e.NewValue;
            }
        }
        public virtual void OnQTYPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.QTYP=QTYP;
        }
         #endregion
       #region ==DQTY===========
        public static readonly DependencyProperty DQTYProperty = DependencyProperty.Register("DQTY",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDQTYChanged));
        public string DQTY
        {
            get
            {
                return (string)GetValue(DQTYProperty);
            }
            set
            {
                SetValue(DQTYProperty, value);
                OnDQTYChg();
            }
        }
        private static void OnDQTYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.DQTY = (string)e.NewValue;
            }
        }
        public virtual void OnDQTYChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.DQTY=DQTY;
        }
         #endregion
       #region ==MPRICE===========
        public static readonly DependencyProperty MPRICEProperty = DependencyProperty.Register("MPRICE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMPRICEChanged));
        public string MPRICE
        {
            get
            {
                return (string)GetValue(MPRICEProperty);
            }
            set
            {
                SetValue(MPRICEProperty, value);
                OnMPRICEChg();
            }
        }
        private static void OnMPRICEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MPRICE = (string)e.NewValue;
            }
        }
        public virtual void OnMPRICEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MPRICE=MPRICE;
        }
         #endregion
       #region ==PSS===========
        public static readonly DependencyProperty PSSProperty = DependencyProperty.Register("PSS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPSSChanged));
        public string PSS
        {
            get
            {
                return (string)GetValue(PSSProperty);
            }
            set
            {
                SetValue(PSSProperty, value);
                OnPSSChg();
            }
        }
        private static void OnPSSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PSS = (string)e.NewValue;
            }
        }
        public virtual void OnPSSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PSS=PSS;
        }
         #endregion
       #region ==PSE===========
        public static readonly DependencyProperty PSEProperty = DependencyProperty.Register("PSE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPSEChanged));
        public string PSE
        {
            get
            {
                return (string)GetValue(PSEProperty);
            }
            set
            {
                SetValue(PSEProperty, value);
                OnPSEChg();
            }
        }
        private static void OnPSEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PSE = (string)e.NewValue;
            }
        }
        public virtual void OnPSEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PSE=PSE;
        }
         #endregion
       #region ==PSP===========
        public static readonly DependencyProperty PSPProperty = DependencyProperty.Register("PSP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPSPChanged));
        public string PSP
        {
            get
            {
                return (string)GetValue(PSPProperty);
            }
            set
            {
                SetValue(PSPProperty, value);
                OnPSPChg();
            }
        }
        private static void OnPSPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PSP = (string)e.NewValue;
            }
        }
        public virtual void OnPSPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PSP=PSP;
        }
         #endregion
       #region ==PPS===========
        public static readonly DependencyProperty PPSProperty = DependencyProperty.Register("PPS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPPSChanged));
        public string PPS
        {
            get
            {
                return (string)GetValue(PPSProperty);
            }
            set
            {
                SetValue(PPSProperty, value);
                OnPPSChg();
            }
        }
        private static void OnPPSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PPS = (string)e.NewValue;
            }
        }
        public virtual void OnPPSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PPS=PPS;
        }
         #endregion
       #region ==PPE===========
        public static readonly DependencyProperty PPEProperty = DependencyProperty.Register("PPE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPPEChanged));
        public string PPE
        {
            get
            {
                return (string)GetValue(PPEProperty);
            }
            set
            {
                SetValue(PPEProperty, value);
                OnPPEChg();
            }
        }
        private static void OnPPEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PPE = (string)e.NewValue;
            }
        }
        public virtual void OnPPEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PPE=PPE;
        }
         #endregion
       #region ==PPP===========
        public static readonly DependencyProperty PPPProperty = DependencyProperty.Register("PPP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPPPChanged));
        public string PPP
        {
            get
            {
                return (string)GetValue(PPPProperty);
            }
            set
            {
                SetValue(PPPProperty, value);
                OnPPPChg();
            }
        }
        private static void OnPPPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PPP = (string)e.NewValue;
            }
        }
        public virtual void OnPPPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PPP=PPP;
        }
         #endregion
       #region ==PTS===========
        public static readonly DependencyProperty PTSProperty = DependencyProperty.Register("PTS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPTSChanged));
        public string PTS
        {
            get
            {
                return (string)GetValue(PTSProperty);
            }
            set
            {
                SetValue(PTSProperty, value);
                OnPTSChg();
            }
        }
        private static void OnPTSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PTS = (string)e.NewValue;
            }
        }
        public virtual void OnPTSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PTS=PTS;
        }
         #endregion
       #region ==PTE===========
        public static readonly DependencyProperty PTEProperty = DependencyProperty.Register("PTE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPTEChanged));
        public string PTE
        {
            get
            {
                return (string)GetValue(PTEProperty);
            }
            set
            {
                SetValue(PTEProperty, value);
                OnPTEChg();
            }
        }
        private static void OnPTEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PTE = (string)e.NewValue;
            }
        }
        public virtual void OnPTEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PTE=PTE;
        }
         #endregion
       #region ==PTP===========
        public static readonly DependencyProperty PTPProperty = DependencyProperty.Register("PTP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPTPChanged));
        public string PTP
        {
            get
            {
                return (string)GetValue(PTPProperty);
            }
            set
            {
                SetValue(PTPProperty, value);
                OnPTPChg();
            }
        }
        private static void OnPTPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PTP = (string)e.NewValue;
            }
        }
        public virtual void OnPTPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PTP=PTP;
        }
         #endregion
       #region ==VTSS===========
        public static readonly DependencyProperty VTSSProperty = DependencyProperty.Register("VTSS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTSSChanged));
        public string VTSS
        {
            get
            {
                return (string)GetValue(VTSSProperty);
            }
            set
            {
                SetValue(VTSSProperty, value);
                OnVTSSChg();
            }
        }
        private static void OnVTSSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTSS = (string)e.NewValue;
            }
        }
        public virtual void OnVTSSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTSS=VTSS;
        }
         #endregion
       #region ==VTSE===========
        public static readonly DependencyProperty VTSEProperty = DependencyProperty.Register("VTSE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTSEChanged));
        public string VTSE
        {
            get
            {
                return (string)GetValue(VTSEProperty);
            }
            set
            {
                SetValue(VTSEProperty, value);
                OnVTSEChg();
            }
        }
        private static void OnVTSEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTSE = (string)e.NewValue;
            }
        }
        public virtual void OnVTSEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTSE=VTSE;
        }
         #endregion
       #region ==VTSP===========
        public static readonly DependencyProperty VTSPProperty = DependencyProperty.Register("VTSP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTSPChanged));
        public string VTSP
        {
            get
            {
                return (string)GetValue(VTSPProperty);
            }
            set
            {
                SetValue(VTSPProperty, value);
                OnVTSPChg();
            }
        }
        private static void OnVTSPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTSP = (string)e.NewValue;
            }
        }
        public virtual void OnVTSPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTSP=VTSP;
        }
         #endregion
       #region ==VTPS===========
        public static readonly DependencyProperty VTPSProperty = DependencyProperty.Register("VTPS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTPSChanged));
        public string VTPS
        {
            get
            {
                return (string)GetValue(VTPSProperty);
            }
            set
            {
                SetValue(VTPSProperty, value);
                OnVTPSChg();
            }
        }
        private static void OnVTPSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTPS = (string)e.NewValue;
            }
        }
        public virtual void OnVTPSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTPS=VTPS;
        }
         #endregion
       #region ==VTPE===========
        public static readonly DependencyProperty VTPEProperty = DependencyProperty.Register("VTPE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTPEChanged));
        public string VTPE
        {
            get
            {
                return (string)GetValue(VTPEProperty);
            }
            set
            {
                SetValue(VTPEProperty, value);
                OnVTPEChg();
            }
        }
        private static void OnVTPEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTPE = (string)e.NewValue;
            }
        }
        public virtual void OnVTPEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTPE=VTPE;
        }
         #endregion
       #region ==VTPP===========
        public static readonly DependencyProperty VTPPProperty = DependencyProperty.Register("VTPP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTPPChanged));
        public string VTPP
        {
            get
            {
                return (string)GetValue(VTPPProperty);
            }
            set
            {
                SetValue(VTPPProperty, value);
                OnVTPPChg();
            }
        }
        private static void OnVTPPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTPP = (string)e.NewValue;
            }
        }
        public virtual void OnVTPPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTPP=VTPP;
        }
         #endregion
       #region ==VTTS===========
        public static readonly DependencyProperty VTTSProperty = DependencyProperty.Register("VTTS",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTTSChanged));
        public string VTTS
        {
            get
            {
                return (string)GetValue(VTTSProperty);
            }
            set
            {
                SetValue(VTTSProperty, value);
                OnVTTSChg();
            }
        }
        private static void OnVTTSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTTS = (string)e.NewValue;
            }
        }
        public virtual void OnVTTSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTTS=VTTS;
        }
         #endregion
       #region ==VTTE===========
        public static readonly DependencyProperty VTTEProperty = DependencyProperty.Register("VTTE",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTTEChanged));
        public string VTTE
        {
            get
            {
                return (string)GetValue(VTTEProperty);
            }
            set
            {
                SetValue(VTTEProperty, value);
                OnVTTEChg();
            }
        }
        private static void OnVTTEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTTE = (string)e.NewValue;
            }
        }
        public virtual void OnVTTEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTTE=VTTE;
        }
         #endregion
       #region ==VTTP===========
        public static readonly DependencyProperty VTTPProperty = DependencyProperty.Register("VTTP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVTTPChanged));
        public string VTTP
        {
            get
            {
                return (string)GetValue(VTTPProperty);
            }
            set
            {
                SetValue(VTTPProperty, value);
                OnVTTPChg();
            }
        }
        private static void OnVTTPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VTTP = (string)e.NewValue;
            }
        }
        public virtual void OnVTTPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VTTP=VTTP;
        }
         #endregion
       #region ==VMQSTDPSTD===========
        public static readonly DependencyProperty VMQSTDPSTDProperty = DependencyProperty.Register("VMQSTDPSTD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQSTDPSTDChanged));
        public string VMQSTDPSTD
        {
            get
            {
                return (string)GetValue(VMQSTDPSTDProperty);
            }
            set
            {
                SetValue(VMQSTDPSTDProperty, value);
                OnVMQSTDPSTDChg();
            }
        }
        private static void OnVMQSTDPSTDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQSTDPSTD = (string)e.NewValue;
            }
        }
        public virtual void OnVMQSTDPSTDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQSTDPSTD=VMQSTDPSTD;
        }
         #endregion
       #region ==VMQSTDPEK===========
        public static readonly DependencyProperty VMQSTDPEKProperty = DependencyProperty.Register("VMQSTDPEK",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQSTDPEKChanged));
        public string VMQSTDPEK
        {
            get
            {
                return (string)GetValue(VMQSTDPEKProperty);
            }
            set
            {
                SetValue(VMQSTDPEKProperty, value);
                OnVMQSTDPEKChg();
            }
        }
        private static void OnVMQSTDPEKChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQSTDPEK = (string)e.NewValue;
            }
        }
        public virtual void OnVMQSTDPEKChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQSTDPEK=VMQSTDPEK;
        }
         #endregion
       #region ==VMQSTDPPLAN===========
        public static readonly DependencyProperty VMQSTDPPLANProperty = DependencyProperty.Register("VMQSTDPPLAN",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQSTDPPLANChanged));
        public string VMQSTDPPLAN
        {
            get
            {
                return (string)GetValue(VMQSTDPPLANProperty);
            }
            set
            {
                SetValue(VMQSTDPPLANProperty, value);
                OnVMQSTDPPLANChg();
            }
        }
        private static void OnVMQSTDPPLANChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQSTDPPLAN = (string)e.NewValue;
            }
        }
        public virtual void OnVMQSTDPPLANChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQSTDPPLAN=VMQSTDPPLAN;
        }
         #endregion
       #region ==VMQPLANPSTD===========
        public static readonly DependencyProperty VMQPLANPSTDProperty = DependencyProperty.Register("VMQPLANPSTD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQPLANPSTDChanged));
        public string VMQPLANPSTD
        {
            get
            {
                return (string)GetValue(VMQPLANPSTDProperty);
            }
            set
            {
                SetValue(VMQPLANPSTDProperty, value);
                OnVMQPLANPSTDChg();
            }
        }
        private static void OnVMQPLANPSTDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQPLANPSTD = (string)e.NewValue;
            }
        }
        public virtual void OnVMQPLANPSTDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQPLANPSTD=VMQPLANPSTD;
        }
         #endregion
       #region ==VMQPLANPEK===========
        public static readonly DependencyProperty VMQPLANPEKProperty = DependencyProperty.Register("VMQPLANPEK",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQPLANPEKChanged));
        public string VMQPLANPEK
        {
            get
            {
                return (string)GetValue(VMQPLANPEKProperty);
            }
            set
            {
                SetValue(VMQPLANPEKProperty, value);
                OnVMQPLANPEKChg();
            }
        }
        private static void OnVMQPLANPEKChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQPLANPEK = (string)e.NewValue;
            }
        }
        public virtual void OnVMQPLANPEKChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQPLANPEK=VMQPLANPEK;
        }
         #endregion
       #region ==VMQPLANPPLAN===========
        public static readonly DependencyProperty VMQPLANPPLANProperty = DependencyProperty.Register("VMQPLANPPLAN",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQPLANPPLANChanged));
        public string VMQPLANPPLAN
        {
            get
            {
                return (string)GetValue(VMQPLANPPLANProperty);
            }
            set
            {
                SetValue(VMQPLANPPLANProperty, value);
                OnVMQPLANPPLANChg();
            }
        }
        private static void OnVMQPLANPPLANChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQPLANPPLAN = (string)e.NewValue;
            }
        }
        public virtual void OnVMQPLANPPLANChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQPLANPPLAN=VMQPLANPPLAN;
        }
         #endregion
       #region ==VMQACTPSTD===========
        public static readonly DependencyProperty VMQACTPSTDProperty = DependencyProperty.Register("VMQACTPSTD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQACTPSTDChanged));
        public string VMQACTPSTD
        {
            get
            {
                return (string)GetValue(VMQACTPSTDProperty);
            }
            set
            {
                SetValue(VMQACTPSTDProperty, value);
                OnVMQACTPSTDChg();
            }
        }
        private static void OnVMQACTPSTDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQACTPSTD = (string)e.NewValue;
            }
        }
        public virtual void OnVMQACTPSTDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQACTPSTD=VMQACTPSTD;
        }
         #endregion
       #region ==VMQACTPEK===========
        public static readonly DependencyProperty VMQACTPEKProperty = DependencyProperty.Register("VMQACTPEK",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQACTPEKChanged));
        public string VMQACTPEK
        {
            get
            {
                return (string)GetValue(VMQACTPEKProperty);
            }
            set
            {
                SetValue(VMQACTPEKProperty, value);
                OnVMQACTPEKChg();
            }
        }
        private static void OnVMQACTPEKChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQACTPEK = (string)e.NewValue;
            }
        }
        public virtual void OnVMQACTPEKChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQACTPEK=VMQACTPEK;
        }
         #endregion
       #region ==VMQACTPPLAN===========
        public static readonly DependencyProperty VMQACTPPLANProperty = DependencyProperty.Register("VMQACTPPLAN",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVMQACTPPLANChanged));
        public string VMQACTPPLAN
        {
            get
            {
                return (string)GetValue(VMQACTPPLANProperty);
            }
            set
            {
                SetValue(VMQACTPPLANProperty, value);
                OnVMQACTPPLANChg();
            }
        }
        private static void OnVMQACTPPLANChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.VMQACTPPLAN = (string)e.NewValue;
            }
        }
        public virtual void OnVMQACTPPLANChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.VMQACTPPLAN=VMQACTPPLAN;
        }
         #endregion
       #region ==PRODV===========
        public static readonly DependencyProperty PRODVProperty = DependencyProperty.Register("PRODV",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPRODVChanged));
        public string PRODV
        {
            get
            {
                return (string)GetValue(PRODVProperty);
            }
            set
            {
                SetValue(PRODVProperty, value);
                OnPRODVChg();
            }
        }
        private static void OnPRODVChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PRODV = (string)e.NewValue;
            }
        }
        public virtual void OnPRODVChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PRODV=PRODV;
        }
         #endregion
       #region ==ADMINV===========
        public static readonly DependencyProperty ADMINVProperty = DependencyProperty.Register("ADMINV",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnADMINVChanged));
        public string ADMINV
        {
            get
            {
                return (string)GetValue(ADMINVProperty);
            }
            set
            {
                SetValue(ADMINVProperty, value);
                OnADMINVChg();
            }
        }
        private static void OnADMINVChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ADMINV = (string)e.NewValue;
            }
        }
        public virtual void OnADMINVChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ADMINV=ADMINV;
        }
         #endregion
       #region ==SNDQTY===========
        public static readonly DependencyProperty SNDQTYProperty = DependencyProperty.Register("SNDQTY",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSNDQTYChanged));
        public string SNDQTY
        {
            get
            {
                return (string)GetValue(SNDQTYProperty);
            }
            set
            {
                SetValue(SNDQTYProperty, value);
                OnSNDQTYChg();
            }
        }
        private static void OnSNDQTYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.SNDQTY = (string)e.NewValue;
            }
        }
        public virtual void OnSNDQTYChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.SNDQTY=SNDQTY;
        }
         #endregion
       #region ==S===========
        public static readonly DependencyProperty SProperty = DependencyProperty.Register("S",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSChanged));
        public string S
        {
            get
            {
                return (string)GetValue(SProperty);
            }
            set
            {
                SetValue(SProperty, value);
                OnSChg();
            }
        }
        private static void OnSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.S = (string)e.NewValue;
            }
        }
        public virtual void OnSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.S=S;
        }
         #endregion
       #region ==M===========
        public static readonly DependencyProperty MProperty = DependencyProperty.Register("M",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMChanged));
        public string M
        {
            get
            {
                return (string)GetValue(MProperty);
            }
            set
            {
                SetValue(MProperty, value);
                OnMChg();
            }
        }
        private static void OnMChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.M = (string)e.NewValue;
            }
        }
        public virtual void OnMChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.M=M;
        }
         #endregion
       #region ==L===========
        public static readonly DependencyProperty LProperty = DependencyProperty.Register("L",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnLChanged));
        public string L
        {
            get
            {
                return (string)GetValue(LProperty);
            }
            set
            {
                SetValue(LProperty, value);
                OnLChg();
            }
        }
        private static void OnLChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.L = (string)e.NewValue;
            }
        }
        public virtual void OnLChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.L=L;
        }
         #endregion
       #region ==XL===========
        public static readonly DependencyProperty XLProperty = DependencyProperty.Register("XL",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnXLChanged));
        public string XL
        {
            get
            {
                return (string)GetValue(XLProperty);
            }
            set
            {
                SetValue(XLProperty, value);
                OnXLChg();
            }
        }
        private static void OnXLChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.XL = (string)e.NewValue;
            }
        }
        public virtual void OnXLChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.XL=XL;
        }
         #endregion
       #region ==SP===========
        public static readonly DependencyProperty SPProperty = DependencyProperty.Register("SP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSPChanged));
        public string SP
        {
            get
            {
                return (string)GetValue(SPProperty);
            }
            set
            {
                SetValue(SPProperty, value);
                OnSPChg();
            }
        }
        private static void OnSPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.SP = (string)e.NewValue;
            }
        }
        public virtual void OnSPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.SP=SP;
        }
         #endregion
       #region ==MP===========
        public static readonly DependencyProperty MPProperty = DependencyProperty.Register("MP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMPChanged));
        public string MP
        {
            get
            {
                return (string)GetValue(MPProperty);
            }
            set
            {
                SetValue(MPProperty, value);
                OnMPChg();
            }
        }
        private static void OnMPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MP = (string)e.NewValue;
            }
        }
        public virtual void OnMPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MP=MP;
        }
         #endregion
       #region ==LP===========
        public static readonly DependencyProperty LPProperty = DependencyProperty.Register("LP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnLPChanged));
        public string LP
        {
            get
            {
                return (string)GetValue(LPProperty);
            }
            set
            {
                SetValue(LPProperty, value);
                OnLPChg();
            }
        }
        private static void OnLPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.LP = (string)e.NewValue;
            }
        }
        public virtual void OnLPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.LP=LP;
        }
         #endregion
       #region ==XLP===========
        public static readonly DependencyProperty XLPProperty = DependencyProperty.Register("XLP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnXLPChanged));
        public string XLP
        {
            get
            {
                return (string)GetValue(XLPProperty);
            }
            set
            {
                SetValue(XLPProperty, value);
                OnXLPChg();
            }
        }
        private static void OnXLPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.XLP = (string)e.NewValue;
            }
        }
        public virtual void OnXLPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.XLP=XLP;
        }
         #endregion
       #region ==CONTROL===========
        public static readonly DependencyProperty CONTROLProperty = DependencyProperty.Register("CONTROL",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCONTROLChanged));
        public string CONTROL
        {
            get
            {
                return (string)GetValue(CONTROLProperty);
            }
            set
            {
                SetValue(CONTROLProperty, value);
                OnCONTROLChg();
            }
        }
        private static void OnCONTROLChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.CONTROL = (string)e.NewValue;
            }
        }
        public virtual void OnCONTROLChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CONTROL=CONTROL;
        }
         #endregion
       #region ==PROGRP===========
        public static readonly DependencyProperty PROGRPProperty = DependencyProperty.Register("PROGRP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPROGRPChanged));
        public string PROGRP
        {
            get
            {
                return (string)GetValue(PROGRPProperty);
            }
            set
            {
                SetValue(PROGRPProperty, value);
                OnPROGRPChg();
            }
        }
        private static void OnPROGRPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PROGRP = (string)e.NewValue;
            }
        }
        public virtual void OnPROGRPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PROGRP=PROGRP;
        }
         #endregion
       #region ==PROGRPD===========
        public static readonly DependencyProperty PROGRPDProperty = DependencyProperty.Register("PROGRPD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPROGRPDChanged));
        public string PROGRPD
        {
            get
            {
                return (string)GetValue(PROGRPDProperty);
            }
            set
            {
                SetValue(PROGRPDProperty, value);
                OnPROGRPDChg();
            }
        }
        private static void OnPROGRPDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.PROGRPD = (string)e.NewValue;
            }
        }
        public virtual void OnPROGRPDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.PROGRPD=PROGRPD;
        }
         #endregion
       #region ==ARTGRP===========
        public static readonly DependencyProperty ARTGRPProperty = DependencyProperty.Register("ARTGRP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnARTGRPChanged));
        public string ARTGRP
        {
            get
            {
                return (string)GetValue(ARTGRPProperty);
            }
            set
            {
                SetValue(ARTGRPProperty, value);
                OnARTGRPChg();
            }
        }
        private static void OnARTGRPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ARTGRP = (string)e.NewValue;
            }
        }
        public virtual void OnARTGRPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ARTGRP=ARTGRP;
        }
         #endregion
       #region ==ARTGRPD===========
        public static readonly DependencyProperty ARTGRPDProperty = DependencyProperty.Register("ARTGRPD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnARTGRPDChanged));
        public string ARTGRPD
        {
            get
            {
                return (string)GetValue(ARTGRPDProperty);
            }
            set
            {
                SetValue(ARTGRPDProperty, value);
                OnARTGRPDChg();
            }
        }
        private static void OnARTGRPDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.ARTGRPD = (string)e.NewValue;
            }
        }
        public virtual void OnARTGRPDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ARTGRPD=ARTGRPD;
        }
         #endregion
       #region ==MATGRP===========
        public static readonly DependencyProperty MATGRPProperty = DependencyProperty.Register("MATGRP",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMATGRPChanged));
        public string MATGRP
        {
            get
            {
                return (string)GetValue(MATGRPProperty);
            }
            set
            {
                SetValue(MATGRPProperty, value);
                OnMATGRPChg();
            }
        }
        private static void OnMATGRPChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MATGRP = (string)e.NewValue;
            }
        }
        public virtual void OnMATGRPChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MATGRP=MATGRP;
        }
         #endregion
       #region ==MATGRPD===========
        public static readonly DependencyProperty MATGRPDProperty = DependencyProperty.Register("MATGRPD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMATGRPDChanged));
        public string MATGRPD
        {
            get
            {
                return (string)GetValue(MATGRPDProperty);
            }
            set
            {
                SetValue(MATGRPDProperty, value);
                OnMATGRPDChg();
            }
        }
        private static void OnMATGRPDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MATGRPD = (string)e.NewValue;
            }
        }
        public virtual void OnMATGRPDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MATGRPD=MATGRPD;
        }
         #endregion
       #region ==MATART===========
        public static readonly DependencyProperty MATARTProperty = DependencyProperty.Register("MATART",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMATARTChanged));
        public string MATART
        {
            get
            {
                return (string)GetValue(MATARTProperty);
            }
            set
            {
                SetValue(MATARTProperty, value);
                OnMATARTChg();
            }
        }
        private static void OnMATARTChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MATART = (string)e.NewValue;
            }
        }
        public virtual void OnMATARTChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MATART=MATART;
        }
         #endregion
       #region ==MATARTD===========
        public static readonly DependencyProperty MATARTDProperty = DependencyProperty.Register("MATARTD",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMATARTDChanged));
        public string MATARTD
        {
            get
            {
                return (string)GetValue(MATARTDProperty);
            }
            set
            {
                SetValue(MATARTDProperty, value);
                OnMATARTDChg();
            }
        }
        private static void OnMATARTDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.MATARTD = (string)e.NewValue;
            }
        }
        public virtual void OnMATARTDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MATARTD=MATARTD;
        }
         #endregion
       #region ==SECTION===========
        public static readonly DependencyProperty SECTIONProperty = DependencyProperty.Register("SECTION",
            typeof(string), typeof(UIICC_ABPOS_MCO),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSECTIONChanged));
        public string SECTION
        {
            get
            {
                return (string)GetValue(SECTIONProperty);
            }
            set
            {
                SetValue(SECTIONProperty, value);
                OnSECTIONChg();
            }
        }
        private static void OnSECTIONChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_ABPOS_MCO;
            if (src != null)
            {
                src.SECTION = (string)e.NewValue;
            }
        }
        public virtual void OnSECTIONChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.SECTION=SECTION;
        }
         #endregion
       */
       
       #endregion
    } 
}
